﻿@model EdexApiClient.WH_COMPANIES

<div class="modal hide" data-name="WH_COMPANIES">

    <div class="modal-header">
        <h3>Редактирование контрагента</h3>
    </div>
    
    <div class="modal-body">

        <form name="WH_COMPANIES" class="form-horizontal" method="post"> 
            <fieldset> 

                <input type="hidden" name="GUID_RECORD" value="@Model.GUID_RECORD" />

                <div class="control-group"> 
                    <label class="control-label" for="EXT_KEY">Код компании</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="EXT_KEY" value="@Model.EXT_KEY">
                    </div>
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="COMPANY_NAME">Наименование компании</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="COMPANY_NAME" value="@Model.COMPANY_NAME">
                    </div>
                </div> 
                
                <br />

                <div class="control-group"> 
                    <div class="controls">
                        <div class="input-append">
                            <input type="text" class="input-xlarge" name="COMPANY-FILTER" value="" placeholder="введите наименование компании" />
                            <button class="btn" type="button" data-action="COMPANY-FILTER"><i class="icon-filter"></i></button>
                        </div>
                    </div>
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="COMPANY_GUID-FILTER">Связанная компания</label>
                    <div class="controls">
                        <div class="input-append">
                            <select class="input-xlarge" name="COMPANY_GUID-FILTER">
                                
                                @if (Model.MAP.RIGHT_COMPANY_MAP != null){
                                <option value="@Model.MAP.RIGHT_COMPANY_MAP.GUID_RECORD">@Model.MAP.RIGHT_COMPANY_MAP.COMPANY_NAME</option>
                                }

                            </select>
                            <button class="btn" type="button" data-action="COMPANY-FILTER-APPLY"><i class="icon-ok"></i></button>
                        </div>
                    </div> 
                </div> 

            </fieldset>
        </form>

    </div>

    <div class="modal-footer">

        <div style="float: left">
            <a href="#" class="btn btn-danger" data-dismiss="modal" data-action="COMPANY-DELETE">Удалить</a>
        </div>

        <a href="#" class="btn" data-dismiss="modal">Закрыть</a>
        <a href="#" class="btn btn-primary" data-action="COMPANY-SAVE">Сохранить</a>
    </div>
</div>
